import request from '@/utils/request';

// 第5步，统一管理接口
// goodsList
export const getGoodsList = () => {
  return request({
    method: 'get',
    url: '/goodsList'
  })
}
//goodsdetailList
export const goodsDetailList = () => {
  return request({
    method: 'get',
    url: '/goodsdetailList',
  })
}
//categories
export const getCategories = () => {
  return request({
    method: 'get',
    url: '/categories'
  })
}

export const getUser = () => {
  return request({
    method: 'get',
    url: '/user'
  })
}

export const user = () => {
  return request({
    method: 'get',
    url: '/user',
  });
};
export const goodsdetailList = () => {
  return request({
    method: 'get',
    url: '/goodsdetailList',
  });
};
